//
//  NSObject+YTAdd.h
//  tesDemo02
//
//  Created by 拓客营 on 2022/3/21.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

FOUNDATION_EXTERN void run_main_queue(void (^block)(void));
FOUNDATION_EXTERN void run_global_queue(void (^block)(void));
FOUNDATION_EXTERN void run_main_after(float sec, void(^block)(void));

/*
 可以在非主线程中获取所有属性
*/

@interface NSObject (YTAdd)

//判断是否为iPhone X
@property (class, nonatomic, assign, readonly) BOOL isIphoneX;
//获取状态栏的高度
@property (class, nonatomic, assign, readonly) CGFloat statusBarHeight;
//获取当前状态栏的高度，必须在主线程中使用
@property (class, nonatomic, assign, readonly) CGFloat currentStatusBarHeight;
//获取导航栏高度
@property (class, nonatomic, assign, readonly) CGFloat naviBarHeight;
//获取homeIndecator高度
@property (class, nonatomic, assign, readonly) CGFloat homeIndecatorHeight;
//获取tabbar高度
@property (class, nonatomic, assign, readonly) CGFloat tabBarHeight;
//这个是充话费送的~
@property (class, nonatomic, assign, readonly) CGFloat screenScale;


@end

NS_ASSUME_NONNULL_END
